from django.contrib import admin
from userInformation.models import *


# Register your models here.
class UserInfoAdmin(admin.ModelAdmin):
    list_display = ['userId', 'password', 'isAdmin']


class CreditAdmin(admin.ModelAdmin):
    list_display = ['userId', 'creditLevel']


class RefondRecordAdmin(admin.ModelAdmin):
    list_display = ['id', 'userId', 'ticketId', 'date']


admin.site.register(UserInfo, UserInfoAdmin)
admin.site.register(Credit, CreditAdmin)
admin.site.register(RefondRecord, RefondRecordAdmin)
